MESSAGE:New("红方刷新中", 10, "服务器任务刷新"):ToAll()

local HQ_GROUP = GROUP:FindByName( "RED HQ" )
local HQ_CC = COMMANDCENTER:New( HQ_GROUP, "铁血工造指挥中心" )

local DetectionSetGroup = SET_GROUP:New()
DetectionSetGroup:FilterPrefixes( { "RED EWR" } )
DetectionSetGroup:FilterStart()

local Detection = DETECTION_AREAS:New( DetectionSetGroup, 300000 )

local A2ADispatcher = AI_A2A_DISPATCHER:New( Detection )
A2ADispatcher:SetCommandCenter( HQ_CC )

A2ADispatcher:SetTacticalDisplay( false )
A2ADispatcher:SetTacticalMenu( "铁血工造空情信息中心", "空中目标" )

local BlueBorderZone = ZONE_POLYGON:New("RED Border", GROUP:FindByName("RED Border"))
A2ADispatcher:SetBorderZone( BlueBorderZone )

A2ADispatcher:SetEngageRadius( 120000 )

A2ADispatcher:SetSquadron( "Novo", AIRBASE.Caucasus.Beslan, { "RED F-16CM #001",
					 "RED F/A18_Lot20 #001", "RED MiG-31 #001" } )

A2ADispatcher:SetSquadronOverhead( "Novo", 1 )

A2ADispatcher:SetSquadronGrouping( "Novo", 2 )

A2ADispatcher:SetSquadronTakeoffFromParkingHot( "Novo" )

A2ADispatcher:SetSquadronLanding( "Novo", AI_A2A_DISPATCHER.Landing.AtRunway )

A2ADispatcher:SetSquadronGci2( "Novo", 900, 2100, 200, 200, "RADIO" )

A2ADispatcher:SetSquadronLanguage( "Novo", "RU" )

A2ADispatcher:SetSquadronRadioFrequency( "Novo", 127.5 )

A2ADispatcher:SetSquadronVisible( "Novo" )

A2ADispatcher:Start()


MESSAGE:New("红方中队刷新完成!", 10, "服务器任务刷新", true):ToAll()